package com.nkym.wypan.utils;/*
 * @ClassName PageUtil
 * @Desc TODO
 * @Author 19637
 * @Date 2023/7/6 20:34
 * @Version 1.0
 */

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public class PageUtil {
    public Integer getPageNow() {
        return pageNow;
    }

    public void setPageNow(Integer pageNow) {
        this.pageNow = pageNow;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    @NotNull(message = "页数不能为空")
    @Min(value = 1, message = "当前页不能小于第一页")
    private Integer pageNow = 1;
    @NotNull(message = "分页大小不能为空")
    @Max(value = 50, message = "最大条数不能超过50")
    @Min(value = 1, message = "最少请求一条数据")
    private Integer pageSize = 20;

}
